package com.hr.mes.mapper;

import com.hr.mes.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RolePermissionMapper {

    void addRolePermission(RolePermission rolePermission);

    void deleteRolePermissionByPermissionId(Integer permissionId);

    void deleteRolePermissionByRoleId(Integer roleId);

    List<RolePermission> getRolePermissionList(Integer roleId);

}
